package com.gjs.cd.service.Impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gjs.cd.mapper.AgreementMapper;
import com.gjs.cd.pojo.dto.AgreementDTO;
import com.gjs.cd.pojo.entity.Agreement;
import com.gjs.cd.service.IAgreementService;
import org.springframework.stereotype.Service;

/**
 * @author zhongwenguang
 * @date 2022-5-12 15:35
 */
@Service
public class AgreementServiceImpl extends ServiceImpl<AgreementMapper, Agreement> implements IAgreementService {
    @Override
    public AgreementDTO getAgreementDetails(Long id) {
        return BeanUtil.copyProperties(this.baseMapper.selectById(id),AgreementDTO.class);
    }
}
